package com.only4play.authcenter.controller;

import com.only4play.authcenter.req.PasswordLoginReq;
import com.only4play.authcenter.req.SmsLoginReq;
import com.only4play.authcenter.ret.LoginRet;
import com.only4play.common.model.JsonObject;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author hinzzz www.hinzzz.cn 157957329@qq.com
 * 2024-03-05
 */
@RestController
@RequestMapping(value = "v1/auth")
public class AuthController {

    @PostMapping(value = "passwordLogin")
    public JsonObject<LoginRet> passwordLogin(@RequestBody PasswordLoginReq passwordLoginReq){

        return JsonObject.fail("登录失败");
    }

    @PostMapping(value = "smsLogin")
    public JsonObject<LoginRet> smsLogin(@RequestBody SmsLoginReq passwordLoginReq){

        return JsonObject.fail("登录失败");
    }

    @PostMapping(value = "ddLogin")
    public JsonObject<LoginRet> ddLogin(@RequestBody PasswordLoginReq passwordLoginReq){

        return JsonObject.fail("登录失败");
    }
}
